<?php
use yii\helpers\Html;
use yii\widgets\LinkPager;

$this->title = '我的评论';
?>
<link rel="stylesheet" href="/static/css/mzq.css" />
<?php echo $this->render('_centerHeader') ?>
<!--主体开始-->
<div class="main-area" style=" background: #f5f5f5;">
    <div class="container">
        <div class="column-layout">
            <!-- main-area-left start  -->
            <div class="column-col column-full main-area-left">


<!-- 评论 -->
<div id="WD" class="main-area-leftin tab-box" style="padding:0;">
<div class="ibox">
<div class="ibox-in" style="max-width: 832px;">
<div class="ibox-head" style="position: relative;">
            <ul class="tab-list" role="tablist">
                <li role="presentation" class="active">
                    <a href="#BASIC_DOC" aria-controls="BASIC_DOC" role="tab" data-toggle="tab">我的评论</a>
                </li>
            </ul>

</div>
<div class="ibox-body tab-pane-list">
<!-- 我的评论  -->

<div role="tabpanel" class="tab-pane" style="display: block;" id="MY_QA">
<div class="my-qa-list QA-list">
<?php if($comment != ''){?>
<?php foreach($comment as $k=>$v){?>
	<!-- item  -->
	<div class="item">
		<div class="col-left">
			<div class="col-in">
				<div class="u-photo-box">
					<a href="http://www.bwphp.com/group/common/dynmsg/40296" target="_blank" id="40296" class="u-photo u-photo-btn">
						<img src="http://files.bwphp.com/<?php echo $v['user_thumb']?>" alt="" height="50" width="50">
					</a>
					
				</div>
				<span class="u-name"><?php echo $v['user_name']?></span>
				
			</div>
		</div>

		<div class="col-right">
			<div class="col-in item-r-main">

				<h3 style="max-width: 603px;">
					<a href="http://www.bwphp.com/group/ask/9922/" target="_blank">源自：<?php echo $v['laiyuan']?></a>
				</h3>

				<div class="item-new-answer">
					
						<span class="tips">[我的回答]</span>
						<div style="max-width: 603px;"><?php echo $v['comment_content']?></div>
					
				</div>
				<div class="column-layout item-foot">
					<div class="column-col-ml"><?php echo date('Y-m-d H:i:s',$v['comment_addtime'])?></div>
				</div>
			</div>
		</div>
	</div>
<?php }?>
<?php }else{ echo "<h1><center>您当前没有做过任何的评论</center></h1>";}?>
</div>
<?php echo LinkPager::widget([
				'pagination' => $pagination,
				'prevPageLabel'=>'上一页',
				'nextPageLabel'=>'下一页',
			]);?>
<!-- 我的回复  -->

<!-- 翻页  -->

</div>
</div>
</div>
</div>
</div>
</div>
            <!-- main-area-left end  -->
            <!-- main-area-right start  -->
            <div dy-v="00-00-11-11" class="column-col main-area-right">
                
                <!-- 课程推荐 -->
                <?php echo $this->render('../common/_courseRecommend') ?>
 
                <!-- 名师推荐 -->
                <?php echo $this->render('../common/_teacherRecommend') ?>

                <!-- 图片广告 -->
                <?php echo  $this->render('../common/_adRecommend') ?>
            </div>
            <!-- main-area-right end  -->
        </div>
    </div>
</div>
